package com.test.pojo;

/**
 * 数据实体，在流程中药处理的数据载体
 */
public class DataEntity {
    /**
     * 数据状态，也就是数据处于哪个处理节点
     */
    private DataState state = DataState.STATE1;

    /**
     * 数据值
     */
    private int value = 0;

    public DataState getState() {
        return state;
    }

    public void setState(DataState state) {
        this.state = state;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "DataEntity{" +
                "state=" + state +
                ", value=" + value +
                '}';
    }
}
